home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 May / PCPlus May 1998=disk A.iso / full / CBUILDER / SAMS / SAMPLES / CHAP06 / MAIN.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-12  |  870 b   |  27 lines

  1. //---------------------------------------------------------------------------
  2. #include <vcl.h>
  3. #pragma hdrstop
  4.  
  5. #include "Main.h"
  6. #include "About.h"
  7. #include "Second.h"
  8. //---------------------------------------------------------------------------
  9. #pragma resource "*.dfm"
  10. TMainForm *MainForm;
  11. //---------------------------------------------------------------------------
  12. __fastcall TMainForm::TMainForm(TComponent* Owner)
  13.   : TForm(Owner)
  14. {
  15. }
  16. //--------------------------------------------------------------------------- 
  17. void __fastcall TMainForm::ShowForm2Click(TObject *Sender)
  18. {
  19.     SecondForm->ShowModal();
  20. }
  21. //---------------------------------------------------------------------
  22. void __fastcall TMainForm::AboutButtonClick(TObject *Sender)
  23. {
  24.     AboutBox->ShowModal();
  25. }
  26. //---------------------------------------------------------------------
  27.